<?php
class detailAction extends rareAction{
	public function execute(){
		$id = $this->getGetParam('id',0);
		if($id==0) redirect('message/index');
		$dao = new DaoMessage();
		$message = $dao->getOne(" id='$id'");
		$this->assign('message',$message);
		if(service_type::OWNER==$message['type']){
			$this->setLayout('owner');
		}
	}
}
?>
